/*
 * McCullochPittsNeuronTest.cpp
 *
 *  Created on: Sep 6, 2013
 *      Author: filipe
 */
#include <cstdio>
#include "McCullochPittsNeuron.h"

int
main(void)
{
	double input[2];

	// OR
	McCullochPittsNeuron neuron(2, new StepActivationFunction());
	neuron.SetSynapticWeight(0, 1.0);
	neuron.SetSynapticWeight(1, 1.0);

	input[0] = 1.0;
	input[1] = 0.0;

	printf("neuron activity with input %lf %lf: %lf\n", input[0], input[1], neuron.Evaluate(input));

	return 0;
}



